<template>
	<view class="page-footprint">
		<view class="index-header">
			<view class="index-header-v">
				<image class="test1" src="../../static/search-img/左箭头.png"></image>
				<text>我的足迹</text>
				<image class="test1" src="../../static/home/conent/列表选择.png"></image>
			</view>
		</view>
		<view class=""><goodsitem :goodesList="trackList" :isInfoShow="false"></goodsitem></view>
	</view>
</template>

<script>
//商品item组件
import goodsitem from '../../components/goods-item/goodsItem.vue';

//引入点击向上组件
import clickUp from '../../components/click-up/click-up.vue';

import { mapState, mapActions, mapMutations } from 'vuex';
export default {
	data() {
		return {};
	},
	computed:{
		...mapState({
			trackList:state=> state.track_idx.trackList

		})
	},	
	components:{
		goodsitem
	},
	mounted() {
		

	},
	onShow() {
		console.log('11111')
		console.log(JSON.parse(uni.getStorageSync('trackAry')))
		if(uni.getStorageSync('trackAry')){
			let tracklist=JSON.parse(uni.getStorageSync('trackAry'))
			let gidAry=[]
			tracklist.forEach(el=>{
				gidAry.push(el.item_id)
			})
			this.reqSeedGetTrakList({gidAary:gidAry}).then(data=>{
				console.log(data)
			})
		}
	},
	methods: {
		...mapActions(['reqSeedGetTrakList'])
	},
};
</script>

<style scoped lang="scss">
.page-footprint {
	// 设置头部导航
	width: 100vw;
	height: calc(100vh - 100rpx);
	.index-header {
		background: linear-gradient(138deg, #f40497, #f81131);
		width: 100%;
		.index-header-v {
			margin: 0 auto;
			width: 90%;
			display: flex;
			justify-content: space-between;
			align-items: center;
			text-align: center;
			font-size: 35upx;
			color: #ffffff;
			height: 46px;
			image {
				width: 57upx;
				height: 57upx;
			}
			text {
				width: 80%;
			}
		}
	}
}
</style>
